/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #080420; /* Dark background */
    color: white;
    line-height: 1.6;
}

/* Navigation styles */
nav {
    background-color: #0d0d30;
    padding: 15px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #9a86f3; /* Light purple for hover and focus */
    outline: none; /* Remove outline for focus state */
}

/* Headings */
h1 {
    margin-top: 20px;
    text-align: center;
    color: white;
}

/* Container for the main content */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #1c1c2b; /* Dark background for content container */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Form styles */
form {
    margin-top: 20px;
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: white;
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: #1c1c2b;
    color: white;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #9a86f3;
}

/* Button styles */
button,
input[type="submit"] {
    background-color: #9a86f3;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover,
input[type="submit"]:hover {
    background-color: #7c63f3;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #333;
}

/* Button styles for home page */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    background-color: #9a86f3; /* Light purple */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #7c63f3;
}

/* Footer styles */
footer {
    background-color: #0d0d30;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    color: white;
}

/* Responsive design */
@media (max-width: 600px) {
    nav a {
        display: block;
        margin: 5px 0;
    }

    .container {
        width: 100%;
        padding: 10px;
    }
}

/* Flash message styles */
.flashes {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.flash {
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 1rem;
    text-align: center;
}

.flash.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.flash.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.flash.info {
    background-color: #17a2b8;  /* Blue for informational messages */
}

/* Cancel Button Style */
.cancel {
    background-color: #f44336; /* Red background */
    color: white;
}

.cancel:hover {
    background-color: #d32f2f; /* Darker red when hovered */
    transform: translateY(-2px); /* Slight lift effect */
}

.cancel:active {
    background-color: #c62828; /* Darker red when clicked */
}

/* Login Button Style */
.login {
    background-color: #4caf50; /* Green background */
    color: white;
}

.login:hover {
    background-color: #388e3c; /* Darker green when hovered */
}

.login:active {
    background-color: #2c6e2d; /* Darker green when clicked */
}

/* Register Button Style */
.register {
    background-color: #2196f3; /* Blue background */
    color: white;
}

.register:hover {
    background-color: #1976d2; /* Darker blue when hovered */
}

.register:active {
    background-color: #1565c0; /* Darker blue when clicked */
}

/* Style the container */
.cool-date-field {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background-color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Add hover effect to the container */
.cool-date-field:hover {
    border-color: #9a86f3;
}

/* Style the label */
.cool-date-field .form-label {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    display: block;
}

/* Style the input field */
.stylish-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background-color: #1c1c2b;
    color: white;
}

/* Input hover and focus effects */
.stylish-input:hover,
.stylish-input:focus {
    border-color: #9a86f3;
    background-color: #333;
}

/* Style error messages */
.cool-date-field .text-danger {
    font-size: 0.85rem;
    margin-top: 5px;
    color: #dc3545;
}
/* Logout Button Style */
.logout {
    background-color: #e65100; /* Dark orange */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

.logout:hover {
    background-color: #f57c00; /* Slightly lighter orange on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

.logout:active {
    background-color: #e65100; /* Dark orange on click */
    transform: translateY(0); /* Reset lift effect */
}


/* Trash Button Style */
.buttons {
    background-color: #f44336; /* Red background */
    color: white; /* White icon/text color */
    border: none; /* Remove border */
    padding: 10px 15px; /* Add padding for size */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor for interactivity */
    font-size: 16px; /* Default font size */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
    display: inline-flex; /* Align for icon and text */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
}

/* Hover effect */
.buttons:hover {
    background-color: #d32f2f; /* Darker red for hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Active/click effect */
.buttons:active {
    background-color: #b71c1c; /* Even darker red for active state */
    transform: translateY(0); /* Reset lift effect */
}

/* Icon specific styling */
.buttons i {
    margin-right: 5px; /* Space between icon and text */
    font-size: 18px; /* Slightly larger icon size */
}
